import Vue from "vue";
import Vuex from "vuex";
import permission from "./permission"
import users from "./users"
import orders from "./orders"

// //引入权限菜单
// import * as permissApi from "@/api/permission"

// //引入递归路由
// import recursionRoutes from "@/router/recursionRoutes"

// //引入项目所有的路由
// import allRoutes from "@/router/generateRoutes"

// import dynamicRoutes from '@/router/dynamicRoutes' //动态路由

// import router from "@/router"

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
   collapse:false
  },
  getters: {},
  mutations: {
    //收起菜单
    SET_COLLAPSE(state,payload){
      state.collapse = !state.collapse
    }
  },
  actions: {},
  modules: {
    permission,
    users,
    orders
  },
});
